package com.wjh.DI;

import com.wjh.BeanPostProcessor.BeanPostProcessor;

import java.util.Map;
import java.util.Set;

public class DI {
    public DI(Set<Class> classSet, Map<Class<?>,Object> beanMap){
        //遍历处理所有的BeanPostProcessor
            for(Class s : classSet){
              if(BeanPostProcessor.class.isAssignableFrom(s)){
                 BeanPostProcessor beanPostProcessor =(BeanPostProcessor) beanMap.get(s);
                Object o1 =  beanPostProcessor.postProcessBeforeInitialization(classSet,beanMap);
              }
        }
    }
}
